package com.easyexcel.usr.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @Package: com.easyexcel.usr.exception
 * @ClassName: ExcelReadException
 * @Author: shuaijun Wang
 * @CreateTime: 2020/11/4 14:32
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ExcelReadException extends RuntimeException{
    private String msg;
    private Integer code;

    /**
     * 自定义错误类型
     * @param code 自定义的错误码
     * @param msg 自定义的错误提示
     */
    public ExcelReadException(Integer code, String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
